import request from '@/utils/request'

export function getPageList(query) {
    return request({
        url: '/company/companyInfo/pageList',
        method: 'post',
        data: query
    })
}

export function getCompanyList(query) {
    return request({
        url: '/company/companyInfo/list',
        method: 'post',
        data: query
    })
}

export function add(data) {
    return request({
        url: '/company/companyInfo/add',
        method: 'post',
        data: data
    })
}
// 获取当前登陆账号的企业信息
export function getCompanyInfo(data) {
    return request({
        url: '/company/companyInfo/get',
        method: 'post',
        data: data
    })
}
// 设置当前登陆账号的企业信息
export function saveCompanyInfo(data) {
    return request({
        url: '/company/companyInfo/save',
        method: 'post',
        data: data
    })
}
// /company/companyInfo/save


//企业人员--增加
export function addProple(data) {
    return request({
        url: '/company/empInfo/create',
        method: 'post',
        data: data
    })
}

//企业人员--修改完成
export function updateProple(data) {
    return request({
        url: '/company/empInfo/update',
        method: 'post',
        data: data
    })
}

//企业人员--修改一条
export function updateOne(data) {
    return request({
        url: '/company/empInfo/get',
        method: 'post',
        data: data
    })
}

//企业人员--删除
export function deleteProple(data) {
    return request({
        url: '/company/empInfo/delete',
        method: 'post',
        data: data
    })
}

//企业人员--列表
export function listProple(data) {
    return request({
        url: '/company/empInfo/findAllEmpInfo',
        method: 'post',
        data: data
    })
}

//相关文件--人员证件新增
export function propleCard(data) {
    return request({
        url: '/company/personnelDocument/create',
        method: 'post',
        data: data
    })
}

//相关文件--人员证件修改
export function propleCardUpdate(data) {
    return request({
        url: '/company/personnelDocument/update',
        method: 'post',
        data: data
    })
}

//企业人员--人员一条
export function peopelCardOne(data) {
    return request({
        url: '/company/personnelDocument/get',
        method: 'post',
        data: data
    })
}

//相关文件--人员证件删除
export function propleCardDelete(data) {
    return request({
        url: '/company/personnelDocument/delete',
        method: 'post',
        data: data
    })
}

//相关文件--人员证件查询
export function propleCardGet(data) {
    return request({
        url: '/company/enterpriseFileInfo/get',
        method: 'post',
        params: data
    })
}
//相关文件--列表
export function propleList(data) {
    return request({
        url: '/company/personnelDocument/findAllEmpInfo',
        method: 'post',
        data: data
    })
}

